<?php
class Xa extends AppModel {

	var $name = 'Xa';
	var $validate = array(
		'TEN_X' => array(
		'rule' => array('minLength', '1'),
		'message' => 'Chiều dài nhỏ nhất 5 ký tự')
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Huyen' => array(
			'className' => 'Huyen',
			'foreignKey' => 'huyen_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

/*
	var $hasOne = array(
		'ApKv' => array(
			'className' => 'ApKv',
			'foreignKey' => 'xa_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
*/
	var $hasMany = array(
		'ApKv' => array(
			'className' => 'ApKv',
			'foreignKey' => 'xa_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
?>